package com.linwen.javase.desgin_pattern.create.singleton;

/**
 * @ClassName SingletonTest
 * @Description
 * @Author lin
 * @Date 2022/6/14 下午11:30
 * @Version V1.0
 */
public class SingletonTest {
    public static void main(String[] args) {
        SingletonE singleton = SingletonE.getSingleton();
        SingletonE singleton1 = SingletonE.getSingleton();
        System.out.println(singleton==singleton1);
        SingletonL2 singleton2 = SingletonL2.getSingleton();
        SingletonL2 singleton3 = SingletonL2.getSingleton();
        System.out.println(singleton2==singleton3);
    }
}
